<include file="Common:header" title="添加舞蹈·"/>



<!--主题-->
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            公司logo
        </small>
    </h1>
</div>




<div class="row">
    <div class="col-xs-12" style="padding-left:80px;">
        <form class="form-horizontal" id="form" method="post" action="{:U('Homepage/icon')}">



            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name1：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name" name="icon_name[]" value="{$dataname[0]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" > url1：  </label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url1" name="icon_url[]" value="{$dataurl[0]}"  class="form-control" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img1：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon" id="old_icon" value="{$dataimg[0]}">
                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon" style="width:70px;height: 70px;" alt="" src="{$dataimg[0]}">
                                        <input type="hidden" name="icon">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose()">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name2：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name2" name="icon_name[]" value="{$dataname[1]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url2：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url2" name="icon_url[]" value="{$dataurl[1]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img2：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon2" value="{$dataimg[1]}">

                            <ul class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon2" style="width:70px;height: 70px;" alt="" src="{$dataimg[1]}">
                                        <input type="hidden" name="icon2">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(2)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name3：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name3" name="icon_name[]" value="{$dataname[2]}"  class="form-control" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-lg-2 control-label" >url3：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url3" name="icon_url[]" value="{$dataurl[2]}"    class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img3：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon3" value="{$dataimg[2]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon3" style="width:70px;height: 70px;" alt="" src="{$dataimg[2]}">
                                        <input type="hidden" name="icon3">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(3)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name4：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name4" name="icon_name[]" value="{$dataname[3]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url4：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url4" name="icon_url[]" value="{$dataurl[3]}"    class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img4：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon4" value="{$dataimg[3]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon4" style="width:70px;height: 70px;" alt="" src="{$dataimg[3]}">
                                        <input type="hidden" name="icon4">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(4)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name5：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name5" name="icon_name[]" value="{$dataname[4]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url5：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url5" name="icon_url[]" value="{$dataurl[4]}"    class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img5：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon5" value="{$dataimg[4]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon5" style="width:70px;height: 70px;" alt="" src="{$dataimg[4]}">
                                        <input type="hidden" name="icon5">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(5)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>

            <div class="col-sm-3" style="display:inline-block;margin-bottom:80px;">"
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name6：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name6" name="icon_name[]" value="{$dataname[5]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url6：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url6" name="icon_url[]" value="{$dataurl[5]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img6：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon6" value="{$dataimg[5]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon6" style="width:70px;height: 70px;" alt="" src="{$dataimg[5]}">
                                        <input type="hidden" name="icon6">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(6)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name7：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name7" name="icon_name[]" value="{$dataname[6]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url7：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url7" name="icon_url[]" value="{$dataurl[6]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img7：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden" name="old_icon7" value="{$dataimg[6]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon7" style="width:70px;height: 70px;" alt="" src="{$dataimg[6]}">
                                        <input type="hidden" name="icon7">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(7)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>

            <div class="col-sm-3" style="display:inline-block;">
                <div class="form-group">
                    <label class="col-lg-2 control-label" >name8：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_name8" name="icon_name[]" value="{$dataname[7]}"  class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label" >url8：</label>
                    <div class="col-sm-8">
                        <input type="text"  id="icon_url8" name="icon_url[]" value="{$dataurl[7]}"    class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"   for="form-field-1"> icon_img8：<p class="red">70*70</p>  </label>
                    <div class="col-sm-10" >
                        <div class="pics">
                            <input type="hidden"  name="old_icon8" value="{$dataimg[7]}">

                            <ul  class="ace-thumbnails clearfix">
                                <li>
                                    <div data-rel="colorbox" class="cboxElement">
                                        <img id="icon8" style="width:70px;height: 70px;" alt="" src="{$dataimg[7]}">
                                        <input type="hidden"  name="icon8">
                                    </div>
                                </li>
                            </ul>
                            <button style="margin-left:30px" class="btn btn-info btn-sm" type="button" onclick="banner_choose(8)">
                                <i class="icon-ok bigger-110 "></i>选择图片
                            </button>
                        </div>
                    </div>
                </div>

                <div class="space-4" style="margin-top:80px;"></div>
            </div>



            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <div class="btn btn-info" onclick="submit_form()">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </div>

                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>

                    <div class="space-4"></div>
                    &nbsp; &nbsp; &nbsp;

                </div>
            </div>
        </form>
    </div>
</div>


<div class="modal fade" id="modal_upload">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea" ></div>
                <input type="file" id="file" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="modal_upload2">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea2" ></div>
                <input type="file" id="file2" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file2').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn2" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="modal_upload3">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea3" ></div>
                <input type="file" id="file3" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file3').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn3" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="modal_upload4">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea4" ></div>
                <input type="file" id="file4" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file4').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn4" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="modal_upload5">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea5" ></div>
                <input type="file" id="file5" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file5').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn5" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="modal_upload6">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea6" ></div>
                <input type="file" id="file6" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file6').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn6" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="modal_upload7">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea7" ></div>
                <input type="file" id="file7" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file7').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn7" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="modal_upload8">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">图片裁剪</h4>
            </div>
            <div class="modal-body" style="margin:0 auto; text-align: center;">
                <div id="clipArea8" ></div>
                <input type="file" id="file8" style="display:none;">
                <button class="btn btn-info btn-sm" type="button"  onclick="$('#file8').click();">
                    <i class="icon-ok bigger-110 "></i>选择图片
                </button>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="clipBtn8" type="button" class="btn btn-primary" data-dismiss="modal">确定图片</button>
            </div>
        </div>
    </div>
</div>
<style>
    .clearfix li{
        display:inline;
    }
    #clipArea {
        margin: 20px;
        height: 200px;
    }
    #file,
    #clipBtn {
        margin: 20px;
    }

    #clipArea2 {
        margin: 20px;
        height: 200px;
    }
    #file2,
    #clipBtn2 {
        margin: 20px;
    }

    #clipArea3 {
        margin: 20px;
        height: 200px;
    }
    #file3,
    #clipBtn3 {
        margin: 20px;
    }

    #clipArea4{
        margin: 20px;
        height: 200px;
    }
    #file4,
    #clipBtn4 {
        margin: 20px;
    }
    #clipArea5{
        margin: 20px;
        height: 200px;
    }
    #file5,
    #clipBtn5 {
        margin: 20px;
    }
    #clipArea6{
        margin: 20px;
        height: 200px;
    }
    #file6,
    #clipBtn6 {
        margin: 20px;
    }

    #clipArea7{
        margin: 20px;
        height: 200px;
    }
    #file7,
    #clipBtn7 {
        margin: 20px;
    }

    #clipArea8{
        margin: 20px;
        height: 200px;
    }
    #file8,
    #clipBtn8 {
        margin: 20px;
    }
</style>


<script src="__PUBLIC__/assets/js/jquery-2.1.1.js"></script>

<script src="__PUBLIC__/photoClip/js/iscroll-zoom.js"></script>
<script src="__PUBLIC__/photoClip/js/hammer.js"></script>
<script src="__PUBLIC__/photoClip/js/jquery.photoClip.js"></script>

<include file='Common:header_nav' />
<script>
    $("#clipArea").photoClip({
        width: 70,
        height: 70,
        file: "#file",
        ok: "#clipBtn",
        clipFinish: function(dataURL) {
            $('#icon').attr('src',dataURL);
            $('input[name=icon]').val(dataURL);
        }
    });

    $("#clipArea2").photoClip({
        width: 70,
        height: 70,
        file: "#file2",
        ok: "#clipBtn2",
        clipFinish: function(dataURL) {
            $('#icon2').attr('src',dataURL);
            $('input[name=icon2]').val(dataURL);
        }
    });
    $("#clipArea3").photoClip({
        width: 70,
        height: 70,
        file: "#file3",
        ok: "#clipBtn3",
        clipFinish: function(dataURL) {
            $('#icon3').attr('src',dataURL);
            $('input[name=icon3]').val(dataURL);
        }
    });
    $("#clipArea4").photoClip({
        width: 70,
        height: 70,
        file: "#file4",
        ok: "#clipBtn4",
        clipFinish: function(dataURL) {
            $('#icon4').attr('src',dataURL);
            $('input[name=icon4]').val(dataURL);
        }
    });
    $("#clipArea5").photoClip({
        width: 70,
        height: 70,
        file: "#file5",
        ok: "#clipBtn5",
        clipFinish: function(dataURL) {
            $('#icon5').attr('src',dataURL);
            $('input[name=icon5]').val(dataURL);
        }
    });
    $("#clipArea6").photoClip({
        width: 70,
        height: 70,
        file: "#file6",
        ok: "#clipBtn6",
        clipFinish: function(dataURL) {
            $('#icon6').attr('src',dataURL);
            $('input[name=icon6]').val(dataURL);
        }
    });
    $("#clipArea7").photoClip({
        width: 70,
        height: 70,
        file: "#file7",
        ok: "#clipBtn7",
        clipFinish: function(dataURL) {
            $('#icon7').attr('src',dataURL);
            $('input[name=icon7]').val(dataURL);
        }
    });
    $("#clipArea8").photoClip({
        width: 70,
        height: 70,
        file: "#file8",
        ok: "#clipBtn8",
        clipFinish: function(dataURL) {
            $('#icon8').attr('src',dataURL);
            $('input[name=icon8]').val(dataURL);
        }
    });
    //banner选择
    function banner_choose(id){
        id?  $("#modal_upload"+id).modal():  $("#modal_upload").modal();

    }




</script>

<script>
    function submit_form() {

        if ($('#icon_name').val()=='' ) {
            layer.msg('icon_name1不能为空');
            $('#icon_name').focus();
            return false;
        }
        if ($('#icon').attr('src')=='' ) {
            layer.msg('图片1不能为空');
            $('#icon').focus();
            return false;
        }
        if ($('#icon_name2').val()=='' ) {
            layer.msg('icon_name2不能为空');
            $('#icon_name2').focus();
            return false;
        }
        if ($('#icon2').attr('src')=='' ) {
            layer.msg('图片2不能为空');
            $('#icon2').focus();
            return false;
        }
        if ($('#icon_name3').val()=='' ) {
            layer.msg('icon_name3不能为空');
            $('#icon_name3').focus();
            return false;
        }
        if ($('#icon3').attr('src')=='' ) {
            layer.msg('图片3不能为空');
            $('#icon3').focus();
            return false;
        }

        if ($('#icon_name4').val()=='' ) {
            layer.msg('icon_name4不能为空');
            $('#icon_name4').focus();
            return false;
        }
        if ($('#icon4').attr('src')=='' ) {
            layer.msg('图片4不能为空');
            $('#icon4').focus();
            return false;
        }
        if ($('#icon_name5').val()=='' ) {
            layer.msg('icon_name5不能为空');
            $('#icon_name5').focus();
            return false;
        }
        if ($('#icon5').attr('src')=='' ) {
            layer.msg('图片5不能为空');
            $('#icon5').focus();
            return false;
        }
        if ($('#icon_name6').val()=='' ) {
            layer.msg('icon_name6不能为空');
            $('#icon_name6').focus();
            return false;
        }
        if ($('#icon6').attr('src')=='' ) {
            layer.msg('图片6不能为空');
            $('#icon6').focus();
            return false;
        }
        if ($('#icon_name7').val()=='' ) {
            layer.msg('icon_name7不能为空');
            $('#icon_name7').focus();
            return false;
        }
        if ($('#icon7').attr('src')=='' ) {
            layer.msg('图片7不能为空');
            $('#icon7').focus();
            return false;
        }
        if ($('#icon_name8').val()=='' ) {
            layer.msg('icon_name8不能为空');
            $('#icon_name8').focus();
            return false;
        }
        if ($('#icon8').attr('src')=='' ) {
            layer.msg('图片8不能为空');
            $('#icon8').focus();
            return false;
        }


        $('#form').submit();
    }
</script>


<include file="Common:footer"/>